package com.mnb.base.service.impl;

import com.mnb.common.utils.R;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.mnb.base.entity.StStbprpB;
import com.mnb.base.mapper.StStbprpBMapper;
import com.mnb.base.service.StStbprpBService;

import java.util.List;

@Service
public class StStbprpBServiceImpl implements StStbprpBService{

    @Resource
    private StStbprpBMapper stStbprpBMapper;

    @Override
    public int deleteByPrimaryKey(String stcd) {
        return stStbprpBMapper.deleteByPrimaryKey(stcd);
    }

    @Override
    public int insert(StStbprpB record) {
        return stStbprpBMapper.insert(record);
    }

    @Override
    public int insertSelective(StStbprpB record) {
        return stStbprpBMapper.insertSelective(record);
    }

    @Override
    public StStbprpB selectByPrimaryKey(String stcd) {
        return stStbprpBMapper.selectByPrimaryKey(stcd);
    }

    @Override
    public int updateByPrimaryKeySelective(StStbprpB record) {
        return stStbprpBMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(StStbprpB record) {
        return stStbprpBMapper.updateByPrimaryKey(record);
    }

    @Override
    public R getList(StStbprpB stStbprpB) {
        List<StStbprpB> list = stStbprpBMapper.getList(stStbprpB);
        return R.ok(list);
    }

}
